import OpenAI from "openai";

const openai = new OpenAI({
    baseURL: 'https://api.deepseek.com',
    apiKey: 'sk-9cef97c03a45475691fa69290de36ee3'
});

async function main() {
    const completion = await openai.chat.completions.create({
        messages: [{ role: "system", content: "You are a helpful assistant." }
        ,{ role: "user", content: "hello " }],
        model: "deepseek-chat",
    });

    console.log(completion.choices[0].message);
}

main();